package com.yeebo.controller.sys;

import com.yeebo.common.BaseController;
import com.yeebo.utils.ResponseUtils;
import com.yeebo.vo.Result;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("resource")
public class SysResourceController extends BaseController {

    @RequestMapping("/loadMenuTree")
    @ResponseBody
    @RequiresPermissions("USER_MANAGE_SUB_MENU")
    public Result loadMenuTree() {
        // 获取登录用户信息
        return ResponseUtils.success("菜单");
    }

}
